home *** CD-ROM | disk | FTP | other *** search
- <?php if (!defined("SOinit")) { define("SOinit", 1);
-
- include("SOhttp.php");
-
- // Initialize the connection (just needed before calling any other
- // of these functions like retrieving Excel data)
- // Inputs:
- // $sAddr: address of BadBlue server (e.g., "127.0.0.1:8080")
- // Outputs:
- // $errmsg: empty if no error occurred, otherwise error message
- //
- function SOInit($sAddr) {
- $errmsg = "";
- do {
-
- // Just do a search for dummy data... this will kick off the
- // one-time load of the indexes.
- //
- $sURL = "http://".$sAddr."/ext.dll?MfcISAPICommand=LoadPage&page=search.htx&a0=xyzzy&a1=0&a2=1&a3=6";
- $errmsg = SOHTTPGet($sURL, &$sPage, "", "");
- if (strlen($errmsg)) {
- break;
- }
-
- } while (0);
- return ($errmsg);
- }
-
- } ?>
-